/*
 * Powered By xTOOLs
 * Dev by tao.li8@pactera.com
 * Copyright ©2009-2018 pactera.com All rights reserved.
 * Generated at Jan 12, 2021 10:10:47 AM
 */

package com.pactera.jep.service.sys.model;

import com.pactera.jep.web.entity.Result;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.Digits;

import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.*;
import java.math.BigDecimal;

import com.pactera.jep.commons.DateUtils;
import com.pactera.jep.entity.PO;

/**
 * 登录设备表实体类
 * @Author YourName
 * @Date Jan 12, 2021 10:10:47 AM
 */
@ApiModel(value = "DeviceLogin" , description = "登录设备表")
@Entity
@Table(name = "sys_device_login")
public class DeviceLogin implements PO {

    @ApiModelProperty("设备id")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Length(max = 64, message = "设备id长度最多64位")
    @Column(name = "device_id_")
    private String deviceId;

    @ApiModelProperty("登录账号")
    @Length(max = 64, message = "登录账号长度最多64位")
    @Column(name = "staff_code_")
    private String staffCode;

    @ApiModelProperty("登录姓名")
    @Length(max = 64, message = "登录名称最多64位")
    @Column(name = "staff_name_")
    private String staffName;

    @ApiModelProperty("登录ip")
    @Length(max = 128, message = "登录ip长度最多128位")
    @Column(name = "ip_")
    private String ip;

    @ApiModelProperty("登陆时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "login_time_")
    private Date loginTime;

    @ApiModelProperty("租户")
    @Length(max = 64, message = "租户长度最多64位")
    @Column(name = "TENANT_ID_")
    private String tenantId;

    @ApiModelProperty("创建人ID")
    @Length(max = 64, message = "创建人ID长度最多64位")
    @Column(name = "CREATED_BY_ID_")
    private String createdById;

    @ApiModelProperty("创建人名称")
    @Length(max = 64, message = "创建人名称长度最多64位")
    @Column(name = "CREATED_BY_NAME_")
    private String createdByName;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "CREATED_TIME_")
    private Date createdTime;

    @ApiModelProperty("逻辑删除标记")
    @Length(max = 1, message = "逻辑删除标记长度最多1位")
    @Column(name = "DELFLAG_")
    private String delflag;

    @ApiModelProperty("显示序号")
    @Digits(integer = 10, fraction = 0, message = "显示序号不能超过10位")
    @Column(name = "DISPLAY_ORDER_")
    private Integer displayOrder;

    @ApiModelProperty("修改人ID")
    @Length(max = 64, message = "修改人ID长度最多64位")
    @Column(name = "MODIFIED_BY_ID_")
    private String modifiedById;

    @ApiModelProperty("修改人名称")
    @Length(max = 64, message = "修改人名称长度最多64位")
    @Column(name = "MODIFIED_BY_NAME_")
    private String modifiedByName;

    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "MODIFIED_TIME_")
    private Date modifiedTime;

    @ApiModelProperty("版本")
    @Digits(integer = 10, fraction = 0, message = "版本不能超过10位")
    @Column(name = "VERSION_")
    private Integer version;

    public String getDeviceId(){
        return deviceId;
    }

    public void setDeviceId(String deviceId){
        this.deviceId = deviceId;
    }
    public String getStaffCode(){
        return staffCode;
    }

    public void setStaffCode(String staffCode){
        this.staffCode = staffCode;
    }
    public String getStaffName() { return staffName; }

    public void setStaffName(String staffName) { this.staffName = staffName; }
    public String getIp(){
        return ip;
    }

    public void setIp(String ip){
        this.ip = ip;
    }
    public Date getLoginTime() { return loginTime; }

    public void setLoginTime(Date loginTime) { this.loginTime = loginTime; }
    public String getTenantId(){
        return tenantId;
    }

    public void setTenantId(String tenantId){
        this.tenantId = tenantId;
    }
    public String getCreatedById(){
        return createdById;
    }

    public void setCreatedById(String createdById){
        this.createdById = createdById;
    }
    public String getCreatedByName(){
        return createdByName;
    }

    public void setCreatedByName(String createdByName){
        this.createdByName = createdByName;
    }
    public Date getCreatedTime(){
        return createdTime;
    }

    public void setCreatedTime(Date createdTime){
        this.createdTime = createdTime;
    }
    public String getDelflag(){
        return delflag;
    }

    public void setDelflag(String delflag){
        this.delflag = delflag;
    }
    public Integer getDisplayOrder(){
        return displayOrder;
    }

    public void setDisplayOrder(Integer displayOrder){
        this.displayOrder = displayOrder;
    }
    public String getModifiedById(){
        return modifiedById;
    }

    public void setModifiedById(String modifiedById){
        this.modifiedById = modifiedById;
    }
    public String getModifiedByName(){
        return modifiedByName;
    }

    public void setModifiedByName(String modifiedByName){
        this.modifiedByName = modifiedByName;
    }
    public Date getModifiedTime(){
        return modifiedTime;
    }

    public void setModifiedTime(Date modifiedTime){
        this.modifiedTime = modifiedTime;
    }
    public Integer getVersion(){
        return version;
    }

    public void setVersion(Integer version){
        this.version = version;
    }
}

